package com.dingreading.cloud.soms.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 排课教师表
 */
@Data
@Table(value = "ca_teacher", dataSource = "ds3")
public class MstCaTeacher implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 排课教师表uid
     */
    private String Uid;

    /**
     * 伙伴uid
     */
    private String agencyUid;

    /**
     * 教师名
     */
    private String teacherName;

    /**
     * 教师电话
     */
    private String phone;

    /**
     * 教师uid
     */
    private String staffUid;

    /**
     * 门店uid
     */
    private String storeUid;

    /**
     * 教师类型 1.主讲导读 2.助教
     */
    private Integer teacherType;

    /**
     * 教师账号
     */
    private String username;

    /**
     * 活动uid，没有活动id，去查课程表id
     */
    private String lessonUid;

    /**
     * 课程表uid
     */
    private String scheduleUid;

    /**
     * 记录添加时间
     */
    @Column(onInsertValue = "now()")
    private Date addTime;

    /**
     * 记录最后编辑时间
     */
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    /**
     * 创建人UID
     */
    private String addStaffUid;

    /**
     * 创建人姓名
     */
    private String addStaffName;

    /**
     * 最后更新人UID
     */
    private String lastStaffUid;

    /**
     * 最后更新人姓名
     */
    private String lastStaffName;

}
